package com.dream.technology.db.dao;

import com.dream.technology.db.entity.RcRule;
import com.dream.technology.db.entity.RcRuleQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RcRuleMapper {
    int countByExample(RcRuleQuery example);

    int deleteByExample(RcRuleQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(RcRule record);

    int insertSelective(RcRule record);

    List<RcRule> selectByExample(RcRuleQuery example);

    RcRule selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RcRule record, @Param("example") RcRuleQuery example);

    int updateByExample(@Param("record") RcRule record, @Param("example") RcRuleQuery example);

    int updateByPrimaryKeySelective(RcRule record);

    int updateByPrimaryKey(RcRule record);

    /**
     * 查询指定id的规则集合
     * 配置规则集验证
     * @param ids
     * @return
     */
    List<RcRule> selectByIdInList(List<Long> ids);




}